package com.lyf.scm.plan.domain.service;

import com.github.pagehelper.PageInfo;
import com.lyf.scm.plan.api.dto.OperationLogRecordDTO;

import java.util.List;

/**
 * @Author: huangtao
 * @Description: 操作日志
 * @Date: create in 2020/10/5
 */
public interface OperationLogRecordService {

    /**
     * 查看操作日志
     *
     * @param operationLogRecord
     * @return
     */
    PageInfo<OperationLogRecordDTO> getOperationLogs(OperationLogRecordDTO operationLogRecord);

    /**
     * 新增操作日志数据
     *
     * @param operationDto
     */
    OperationLogRecordDTO insertOperationLog(OperationLogRecordDTO operationDto);

    /**
     * 编辑操作日志数据
     * @author wuyuanhang
     * @date 2020/11/16
     * @param operationDto 操作日志对象
     * @return int 更新条数
     */
    int updateOperationLog(OperationLogRecordDTO operationDto);

    /**
     * 发起大数据定时任务，将状态调整为进行中
     */
    void bigDataInitiating();

    void updateToDel(String opSign);

    /**
     * 删除指定标识数据
     *
     * @param operationLogRecordDTO
     * @return void
     **/
    void rmByOpSign(List<OperationLogRecordDTO> operationLogRecordDTO);

    void opLogInitiating(List<Long> ids);
}
